<?php
namespace App\Log;

use App\Events\OperationEvent;

class AdminLog{

    protected  $data = [];

    public function __construct($data)
    {
         $this->data = $data;
    }

    public  function addLog()
    {
        event(new OperationEvent( $this->data));
    }
}
